{if com("sale")}
{ifp 'sale.deduct|sale.enough|sale.enoughfree|sale.recharge'}
<div class='menu-header'>基本</div>
<ul>

   {ifp 'sale.enough'}<li {if $_W['routes']=='sale.enough'}class="active"{/if}><a href="{php echo webUrl('sale/enough')}"><i class="fa fa-gift"></i>满额立减</a></li>{/if}
   <!-- 拼团设置 -->
		   {ifp 'groups'}<li {if $_W['routes']=='groups'}class="active"{/if}><a href="{php echo webUrl('groups')}"><i class="fa fa-truck"></i>拼团设置</a></li>{/if}

   <!-- 砍价活动 -->
      {ifp 'bargain'}<li {if $_W['routes']=='bargain'}class="active"{/if}><a href="{php echo webUrl('bargain')}"><i class="fa fa-truck"></i>砍价活动</a></li>{/if}

   <!-- 整点秒杀 -->
      {ifp 'seckill'}<li {if $_W['routes']=='seckill'}class="active"{/if}><a href="{php echo webUrl('seckill')}"><i class="fa fa-truck"></i>整点秒杀</a></li>{/if}

   {ifp 'sale.enoughfree'}<li {if $_W['routes']=='sale.enoughfree'}class="active"{/if}><a href="{php echo webUrl('sale/enoughfree')}"><i class="fa fa-truck"></i>满额包邮</a></li>{/if}
    {if function_exists('redis') && !is_error(redis())}
        {ifp 'sale.deduct'}<li {if $_W['routes']=='sale.deduct' || $_W['action']=='sale'}class="active"{/if}><a href="{php echo webUrl('sale/deduct')}"><i class="fa fa-money"></i>抵扣设置</a></li>{/if}
    {/if}
   {ifp 'sale.recharge'}<li {if $_W['routes']=='sale.recharge'}class="active"{/if}><a href="{php echo webUrl('sale/recharge')}"><i class="fa fa-cart-arrow-down"></i>充值优惠</a></li>{/if}
    {ifp 'sale.credit1'}<li {if $_W['routes']=='sale.credit1'}class="active"{/if}><a href="{php echo webUrl('sale/credit1')}"><i class="fa fa-jpy"></i>积分优惠</a></li>{/if}
    {ifp 'sale.package'}<li {if $_W['routes']=='sale.package'}class="active"{/if}><a href="{php echo webUrl('sale/package')}"><i class="fa fa-cog"></i>套餐管理</a></li>{/if}
    {ifp 'sale.gift'}<li {if $_W['routes']=='sale.gift'}class="active"{/if}><a href="{php echo webUrl('sale/gift')}"><i class="fa fa-gift"></i>赠品管理</a></li>{/if}
 </ul>
{/if}
{/if}

{if com("coupon")}
{ifp 'sale.coupon.view|sale.coupon.category|sale.coupon.log|sale.coupon.set'}
  <ul>
   {ifp 'sale.coupon.view'}<li {if $_W['routes']=='sale.coupon'}class="active"{/if}><a href="{php echo webUrl('sale/coupon')}"><i class="fa fa-ticket"></i>优惠券管理</a></li>{/if}

      {ifp 'sale.coupon.send'}
        <li><a href="{php echo webUrl('sale/coupon/sendcoupon')}"><i class="fa fa-pencil"></i>手动发送</a></li>
      {/if}
      {ifp 'sale.coupon'}<li {if $_W['routes']=='sale.coupon'}class="active"{/if}><a href="{php echo webUrl('sale/coupon/sendtask')}"><i class="fa fa-truck"></i>自动发送</a></li>{/if}
      {ifp 'sale.coupon.log'}<li {if $_W['routes']=='sale.coupon.log'}class="active"{/if}><a href="{php echo webUrl('sale/coupon/log')}"><i class="fa fa-clock-o"></i>发放记录</a></li>{/if}
   {ifp 'sale.coupon.category'}<li {if $_W['routes']=='sale.coupon.category'}class="active"{/if}><a href="{php echo webUrl('sale/coupon/category')}"><i class="fa fa-list"></i>分类</a></li>{/if}
   {ifp 'sale.coupon.set'}<li {if $_W['routes']=='sale.coupon.set'}class="active"{/if}><a href="{php echo webUrl('sale/coupon/set')}"><i class="fa fa-calendar"></i>设置</a></li>{/if}
</ul>
{/if}
{/if}
<ul>
    {ifp 'sale.virtual'}<li {if $_W['routes']=='sale.virtual'}class="active"{/if}><a href="{php echo webUrl('sale/virtual')}"><i class="fa fa-star"></i>关注回复</a></li>{/if}
</ul>





